package com.example.com.skills_utf8;

import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;

import com.pic.PicClipActivity;
import com.pic.PicGIFFragment;
import com.pic._61Fragment;


public class _61Activity extends Activity implements View.OnClickListener{

    _61Activity activity = this;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity__61);


        init();

    }


    void init(){

        Button btn_change_tabs = (Button)findViewById(R.id.btn_change_tabs);

        btn_change_tabs.setOnClickListener(this);


    }



    @Override
    public void onClick(View v) {
        // TODO Auto-generated method stub

        Fragment fragment = null;

        switch(v.getId()){

            case R.id.btn_change_tabs:
                fragment = new _61Fragment();
                break;


        }

        if(fragment != null){
            android.app.FragmentTransaction transaction = getFragmentManager().beginTransaction();
            transaction.replace(R.id.layout_content, fragment);
            transaction.commit();
        }



    }


}
